<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head th:include="common/common :: jscss">
    <title>分类设置</title>
</head>
<body>

<div class="layui-fluid">


    <div class="layui-card">

        <form method="post" action="" class="layui-form" lay-filter="zmn-form">
            <input type="hidden" name="categId" th:value="${faultCategory.categId}">

            <div class="layui-split">&nbsp;</div>

            <div class="layui-form-item">
                <label class="layui-form-label  layui-form-required">项目类型:</label>
                <div class="layui-input-inline">
                    <select name="categType">
                        <option value="1" th:selected="${1 == faultCategory.categType}">服务项目类型</option>
                        <option value="2" th:selected="${2 == faultCategory.categType}">计价器项目类型</option>
                        <option value="4" th:selected="${4 == faultCategory.categType}">计价器3.0项目类型</option>
                    </select>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label  layui-form-required">类型名称:</label>
                <div class="layui-input-inline">
                    <input lay-verify="required" maxlength="50" id="categName" type="text" name="categName"
                           th:value="${faultCategory.categName=='null'?'':faultCategory.categName}" autocomplete="off"
                           class="layui-input"/>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label layui-form-required">排序ID:</label>
                <div class="layui-input-inline">
                    <input lay-verify="positive|required" id="sort" type="text" name="sort"
                           th:value="${faultCategory.sort=='null'?'':faultCategory.sort}" autocomplete="off"
                           class="layui-input"/>
                </div>
                <div class="layui-form-mid layui-word-aux">数字越小，越在前面</div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label layui-form-required">业务类型:</label>
                <div class="layui-input-inline" style="width: 490px !important;">
                    <input type="radio" name="bizType" value="1" title="C-保外业务"
                           th:checked="${faultCategory.bizType == 1||faultCategory.categId == null }">
                    <input type="radio" name="bizType" value="2" title="F-保内业务"
                           th:checked="${faultCategory.bizType == 2}">
                    <input type="radio" name="bizType" value="3" title="B-工程业务"
                           th:checked="${faultCategory.bizType == 3}">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label layui-form-required">状态:</label>
                <div class="layui-input-inline">
                    <input type="radio" name="status" value="2" title="启用"
                           th:checked="${faultCategory.status == 2 || faultCategory.categId == null }">
                    <input type="radio" name="status" value="1" title="禁用"
                           th:checked="${faultCategory.status == 1}">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">项目类型说明：</label>
                <div class="layui-input-block">
                    <textarea placeholder="非必填，500字以内" th:text="${faultCategory.desc}" style="width: 300px" name="desc"
                              class="layui-textarea" maxlength="500"></textarea>
                </div>
            </div>

            <div class="layui-split">&nbsp;</div>
            <!--按钮栏
                    置于form标签内的最下方，
                    主功能按钮使用默认样式，次要功能按钮使用原始按钮(加入样式layui-btn-primary)
                    -->
            <div class="layui-form-item submit">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit="" lay-filter="zmn-form-submit">提交</button>
                    <button class="layui-btn layui-btn-primary" id="cancleBtn">
                        取消
                    </button>
                </div>
            </div>

            <div class="layui-split">&nbsp;</div>
        </form>
    </div>

</div>

<script type="text/javascript" th:inline="javascript">
    layui.config({
        base: "/static/lay/"
    }).extend({
        index: "lib/index",
        serv_service_category_detail: "service/category/zmn.service.category.edit",
    }).use(['index', 'serv_service_category_detail']);
</script>
</body>
</html>